add network io funcs and irc auth