allow parent to be specified when indexing - fcheung