multiple fix for repl & ssh