unref main loop before quit
cmi
adding sc proto