added eol flag