minor fixes while testing globals path changes
and broke error_checking.php