moved serialization context to implementation file