rename process to switch
Add deprecation warnings for process and switch