robustified cmdline args, started integration with irc library