refactoring, faster startup with selenium in background