separare plugin initialization from device initialization