replace S_IREAD and S_IWRITE with S_IRUSR and S_IWUSR