generalize set_form_path