switch all to php! \o/