Functions for path-related switching actions