removed dependency on global variable for temporary URL storage