replaced hardcoded domain path with json response scheme and domain