fix various dumb plugin bugs