use inline vars
extract as subtemplate
add bsd licenses
add gpl v2 and v3