writing file - wip
get's all data now - need to fix gzip header