added ranging and multiple channels