upgrade for new log api