fixes to external json loader