rewrote json_loader