restructured IRC engine (this does not work yet)