added deconstructor for CServer
fixed id types