implemented zz_repl