refactored mock server and added authentication
authentication and platforms