add support for nesting fields