fix settings and build errors