improved handling of buildExamples