work with file paths from repo root.
always optimized the entire repo
move recursive function call