created init and stats scripts