debug make request function