state chain for parsing mc commands