find a way to get req.query to defind filr name