cleaned up settings_pollthread a bit