Fixed select(), some more work on parsing the configuration file