added sanity checks for settings