moving command line interface to separate file