needed to start using logic for a more complicate query; shame about the incompleteness
added some real logic to the report (ugh); dragged in logic; a lot of bug fixing--i think it might actually be working now