fix client/main.cpp; debug server/main.cpp