add dirty logging