type checking 'plugin' when loading