get rid of Resource.onChange in favor of Resource.getResourceAndField.