enable use as multitask, fixes #17