added a bare try/except to ensure stability