merge and updating logs