fix ability to pass url as a parameter