add decorateHeaders function to client store