minor updates to record writer