plugin module refactor, fix ide tests