added functionality to serve more file types