added hook priority to plugin hook registration