converting to command line app