optimize functions, update php-fusion copyright