some cut-n-paste debugging stuff (more likely to follow)