minor modif for logging