more work on settings code