moving some functionality from resourceMock to basicMock