updated gist middleware to work with normal FileNotebookManager