added some more debugging, figured out I have a problem with lists appending in unexpected ways