functions php debug galore