gave resource arrays array access, ensuring they are zero-indexed