simplify and use output.markdown for state_message