make sure task exists