updates for sample loading