mock server does 2 things