added more try excepts