fix file permissions

review? @mikehenrty