adjust code for plugin initializations