some significant changes to plugins system and other fun stuff