update log with proper ordering