initialize schema default values from a function