use try/except to boost robust