add regex to remove params from filename