recreate connection when refreshing settings