first prototype for server application