optimized buildrelated things