package serialize.fast refactored