added some http calls to rest service