add relay log, add quit channel