separated the initialization and settings, so it doesn't start before connect info can be gathered