templatize options feature fixes #307