reset and log