changed signature of likely_repl_callback