putting client and server together in one rep