update code to use conduit-extra and resourcet