making this easier to call from within an expectation hash