clean up plugins and errors