Added select

Seg faults when you try to load something when there's already an idx
file for it
Select seg faults when there's an idx used