add mode to render api