using query params to handle duplicate files