handles single line commands