record plugin instance in the app