add support for mocking req/resp