php improvements