added php functionalities