added command handler for message