improved debugging...for posterity maybe?