use c99 return codes; for glory