adds RNG support