refactor map serialisation