fleshing out mocking api.