allow failover reconnect logic, some refactoring for scheduler, some improvements to commandline test runner