added php functions support