adding command handling

Working with cmove