register plugin-x to lua engine