improved wildcard implementation
changed index.pi to get.pi