loads of stuff; add .RandNick for aliases, move some stuff to globals to avoid cyclic imports