fixed order of parameters of the task command.  Fixes #1.
merged upstream master