getting vertex template working