second attempt to fix resource update