working writing to a file, need url