basic command handling implemented