i need to draw plugins before drawing state