add device index support to BSS module