xadd the flush renderd command (shouldn't that be moved elesewhere ?)