moved import
Added try/catch around imports