reorganized code, broke up makewcrequest function