updated server and added connect.c