remove old readurl function