added server_paint_rects