added accept header processing