fix perm and finding script