remove old codes and replace with requests path