added debug_functions.php