added flushing messages service