straightens out access.php