fixed create_message to add all bytes of raw data