changed permissions of files
changed to use full path