dirac: use meaningful return values