added build optimizations