moved try/catch block to the top of routing chain