more flexible way of passing insert values; closes #1626