add get_band utility function