added Sessions; seed math/rand