refactoring localURL