updated plugin to the latest spec