changed the fetch command for headers to be more flexable across