fixing some small issues to allow repl to work properly