sample function to return downloadable file to client