updated plugin to use json directly from service