fixed double-listen kludge