add client and server for nths