minor cleanup of writeouts