improve log and time metrics