clean up php notice/warnings