added functions to hopefully handle settings