how to serve a file