add bdd and socket