simplified RequestFactory and mocked API