debugged refresh.php