fixed minor variable rename in plugin_init()
fixed plugin api hooks