added early PHP functionality