added optional transportfactory parameter to Serializer and Deserializer class