added ability to pass extra meta data to serializer