add messages to assertion to make error intelligeable