More extendable handling and santisation of settings