finalized the plugins system, now works (or so I think).

Signed-off-by: Miethpo <miethpomail@yahoo.co.uk>