add resolve.ocap and export ocap fns