added chmod and chown of new files