add uncaughtexception handler, add background pattern