basic stats gen script