wip - working on better unserialize raw algorithm