add meta helper in global autorun
refine host logic: first should be header["Host"], then can fallback to config host and port