Ahem, use non blocking IO. silly me.