removed pointless file object creation. Just dynamically create the file in memory, we're accessing it by filename anyways, never actually use the file object