added exception for unauthorized access