fixes logging, builds reasonmap with reflection