still not working, but debug info is now much better to read...