fixed command line issues