better error message for attributes that were not found