move getjson functions to separate files