update dependencies
refactor api calls to eliminate error thrown by self executing resource function.