Sequencing actions that modify nw and tp headers

@cschlesi please review this commit.