added errors for invalid settings