some design fixes and features, plugin system improved