added load  convinience function for json files