add server/client function to main.py