put the new is_jid function to use
Pass the retcode through on sub ret events