added namespace try/except