code to read and update tenant resources