set file handling to non blocking