updated init script fully