fixes to adapt old plugins