added debug gem; fixed bug in project index