added md5 and corrected message type