make compatible without globals.php