added dynamic URL loading from JSON (through legacy code :( )