updated app to enclude error thows