complete rewrite mocking service