added logger #88, reveals some new errors