modify repl_check script