optimize build xml