use WIFEXIT/WEXITSTATUS instead manual bitshifting