NF: support for mask in template
RF+BIG: remove trailing whitespace
RF+BK: do not use shebang for structjoin because it seems superfluous