rhl's suggested changes (copy config to detrend, and add user to hdr)