small logging improvements as suggested by dbevenius