putting some more kevlar on app redirect script