update path switch