use options in task registration (a fix)
use options in task registration (second fix)
Merge pull request #13 from royts/master

use options in task registration (a fix)