changed to php instead of xml