updating with dictionaries and file permissions