specify endpoint format in constructor