adding try/catch.