fix model attributes conversions and add specs