refactor lc
fix path bugs