minor cleanup, attempt to fix bug where self.task ended up as undefined
1.0.9