added exception catcher to paths