bandwidth with some bugs TODO