add try except