updating main content to contain final location as a file instead of a string