revert changes how to stucture input
include headers in the returned result of api call