add network io func and irc parsing stuff