refactored base paths into access.php