increase buffer size
use non blocking io