made init script generic