added active/passive modes, and sound streaming