added mock server implementation