fixed plugin inheritance
a few fixes