add fst support, simplify project structure