added some more debugging info to figure out crash