updated refresh and update functions to use new object definitions and infrastructure