revert to storing instance in elmemnt data
to avoid scope clashes