changed to fix the URL path when checking