                 if !@header
                     @header = header
                     @framesPerSec = header.samplingRateHz / header.samplesPerFrame
-                    console.log "header is ", header
+                    
+                #console.log "header is ", header
                     
                 @lastHeader = data
                         

                "Transfer-Encoding":    "identity"
                
            # register ourself as a listener
            @caster.registerListener(@)
            
            # write out our headers
            res.writeHead 200, headers
            
            @dataFunc = (chunk) => @res.write(chunk)

            # and register to sending data...
            @caster.rewind.addListener @dataFunc, offset

            @parser.on "frame", (frame) =>                
                while @buffer.length > @max
                    @buffer.shift

                # make sure we don't get a frame before header
                if @lastHeader
                    buf = new Buffer( @lastHeader.length + frame.length )
                    @lastHeader.copy(buf,0)
                    frame.copy(buf,@lastHeader.length)
                    @buffer.push buf

                bl = @buffer.length
                
                for l in @listeners
                    # we'll give them whatever is at length - offset
                    # l[0] is our callback, l[1] is our offset
                    l[0] @buffer[ bl - l[1] ]
                                                                
            @source.on "data", (chunk) => 
                @parser.write chunk
                            
