add faye and simple streaming function