modify paths for exclusion