added support for transforming nested fields