fix project
refactor config reading