fixed some mem problems and json output
a client example, get a list of url and process them