cleaned up global.php and some things