removed a lot of unneeded functions, we handle the utf8 message in the makeRecord function