clean batch and log