basic command handling.