some changes on flask