Fix pd issue
server.py & server_functions.py now synchronized