allow passing locateOptions