add php/functions.php