refactor slightly and clean up selector code a bit
-rw-r--r-- .gitignore
drwxr-xr-x lib
drwxr-xr-x maint
drwxr-xr-x t