retrieve headers dynamically