add index to prevent dir access