add stream to file