change urlopen to restkit