including both exec and ssh modes, but defaulting to exec