fixed to dump url into file