fix command line options checking