bdsn source code clean