plugins_core refactory