implemented basic source idx stuff