utils for command line user iteraction