fix logging
fix jshint