improve command handler to reply message duplicately hanlded