moved init scripts generation to instances because a script per instance should be generated