refactor requestOptions