model: add defaults
model: support lambda defaults