added functionality to provide mocked responses