some work in api. wrote client/comm.py