reorganize flex source