moved the mertrics api calls to a separte resthelper
changed the URL