added AttachCommand, SetCommand, and UnsetCommand