mocked out some methods