new Application and errorFunction