improvements to flask
flask changes