added a bunch more commands to support the iphone app interface