added umask 0 to perserve permissions