upgrade middleman