adds setup function according to recently changed Plugin interface