added optional callback to defaultHandle of commandHandler