bring back channel select
clean up and bring back inotify support