intermediate solution for filename lookup