adapt to new flavor model, build object from schema