added EOS marker and extended last mod sink