added debug stuff - if this will output anything useful? Who knows...