rename field to spec
fixed models spec
added refs type