add command handler