-> bsd-2 license
make sure that we don't block on fd