added (more) advanced logging