add try-catch.