more render api refactor