reorganize the flask dir