making editor work with performace optimizations