added support for require.toUrl(). I hope that this is the last feature.