added function to ask for the state
add an optional field to the message