refactor to handle changed shared settigns