fixed pipeline init and getJSON