sFS: extract template