editor cleanup