store extension information in a struct