initialize socket with -1
fix number of exported nodes