some refactorings; first audio streaming support