add history and catch no application exception