cache input locations