added basic error tolerance to the repl