worked on commandhandler