apparently an annon function inside setTimeout is the way to go for onJoin