add more flask fuctions.