fixup integrate.py to work on grant + app