Backport reimplementation of taskfragment(fixes #238 for hopefull all)