broked out PHP functionalities