bugfix and more logging