update arity of tcp_prepare