added more try/excepts