added support for ignore_null flag on fields