replicating unixsim changes to fast-tcp