fix for changes to Resource monad