fixed a few warnings in plugin methods