add findurl and regenerateurl function