added some php helpers