added switch_back path, in addition to redirect_path