updated sourceRoot handling