first patch of transfering files