debug reveals more work to be done than hoped, temporarily abandoning logic