some error checking and rebuild at build time
removed readonly class from add list