btcp-daemon 2tier design development