a little trivial cleanup for prerouting