debugging (removed difftest.R from collate)