rng example and some fixes