protocol implemented in server2.py