started trying to make resource count updates work