add try/catch