support flask 0.8