update to php classes