added the new get_field API implementation. fixed a few failing test cases