some cleanup to process-index.sh
turned off debugging and tested everything and it works --timball