[settings] cleanup code