fixed command line functionality