added batch upload option; rng validation