resolve build errors