all of refinecommon in resource monad