extract method
make callback optional
now we don't have to call connect()
extract iq_for_ban method