copied user.cpp to server