adding indexof shim