using resources to interface with api, rather than vanilla  factories