[cvio] improve template layout