added command line options parser