add a try/catch for a security error