bug tested command line functionality