throw error if missing info