add support for selection of samples when loading a region