allow path_after is an array