update settings and fix compile issue