added logging to php proxy