fixed reflection class instantiation i SettingsManager and other issues