separate generate command handling from iq stanza handler
set message of InternalError, log centrally
replace ip with domain