make optimizing plugins work