try/except handlers implemented