updated server.c for testing purposes