added possibility to specify default serializer / deserializer