some changes for plugins