updates to run.py and client