correcting the repl to use the loadAndInvoke method.