build tap.so to be thread safe