added Logging