fixing compile problems with settings