fixed tasks as members of classes

closes gh-98