added audio playback and console code