fix logging, trigger build fail on > warning, some dead code cleanup