updated plugin initialization hooks