added clock, random gens, and hookup to tty