added Accept: application/json request header, updated datatypes to
match new responses