synchronized "insertTask"
solve the recursion, get rid of the damn flag