prepare to init plugins