support 1 or 2 channels

closes #1
1.1.0