add possibility to read from json and ini files
refactor url retrieving a bit