adding a scheduler main task