Further replace all REST calls with emulators