added method for command handling
added some more methods for command controlling