switch to shell and back again