created a module for runner stuff, moved logic away from cmd