fixed schema to ensure presence of model attributes