fix outstanding issue in doRequest so there's no empty body, misc cleanup