turned it into a plugin