added an instance of github callback to middleware