started to adopt HAL for json API