removed duplicate lines, as well as invalid settings