is the problem in the return code? or the way we read it?