trying the serve file function