added Logging with default level=debug