use partial prepare_header_data