init and stats