add mes to output state