better task status handling