implement render sub-command