treatment merge is used instead of a custom one so that extract_wake works for any variable input !!