check returns on stat update

revert Makefile