added support for fields in object.py