basic plugin cloned from inspect