select() now works