add custom func option on varyby struct, closes #1