modified logging, use visitors for that