added much more sane logging