changed file serving to stream