remove old code from plugins