update to use oswitch shell script mechanism