added argvIndex functions