added states and commands