adding raises back in, debugging excpetions