simplified file choosing filter logic