now the server is broken down into component and is partly working;