repo optimizations