php detection error on start.php plus fixed header var bug since moving it to util class