adding try/catch block to the resolve path