adapting process.py to do post and put appropriately