removed some unused settings guessing code