added control in server.py