fixed up external json loading