fix logging, minor stuff.