add some flask api