initial not yet working implementation for synchronized tasks
general synchronized related fixes
sync tasks: now it seems to relatively work, some more improvements needed