changed php files to be more php-y