updated init script structure