this gets called by mocks helper automatically