moving template into vendor, adjust lib