makes things work correctly in REPL