some error checking and rebuild at build time