made listen mode a typedef