update versions, write content to file