added support for constant and auto fields