* code for parsing options