added printing to repl (bugfix)