trying to work around different OS nonblock accept behaviour