upgrade plugin to accept provider arguemnt