get/put file now operate on streams instead of specifically on files