fix typo, add try/catch