add renderstate machine