resolve headers dynamically during invocation time