change writeData to output correct urls
change sleep time