add throw exception if not granted