nextMetaLoaded is a separate function now as well
decodeUri to get a nice dir name