improvements and bug fixes for audio