fix handling of extension sanity checks