clean log and create