added some random build optimizations as an experiment