udpate simplerealurl which fixes #1; make variable names not the same as outer scope; make clone deep easier for tests