added plugininitialize for handling callback