add flask app; supports looping requests and most recent file fetching