Topic/support custom serialization

> they both take three optional keyword arguments

Should be updated to "four" optional keyword arguments.