add possibility to pass additional options to serializer