moving SecurityException to app