thread the port, branch, and cb in the check()