generate proper task ids