refactoring for Flask 0.10