use with client.py for instance