still failing, added some exception handling code, but it doesn't help