port to a basic plugin