added some php to do work