adding plugin initiation logic