improved statemachine metadata and status command