moved taskCheck-implementation to taskcontroller