improve bd init