followup to #278 the error when not having the expected structure is quite confusing and it should be better