fix command line issues