re-added auth, updated rng, implemented url encoding
refactored directories