added support for updating resources