added some php classes