update utils to streamline saving of files