fix a bug (possible overlaps in dependency list)
introduced record fields for triggers, renamed fields