external JSON files working with directory