stream: properly implement filesend