warnings fixed

settingmanager turned to static caused some warnings, all fixed and
optimized now.