set default argument in processpath instead of each path function