finally figured out the last bug.  that was a subtle one