mocked APIs