add path and single template support