move map REST call out of the old service