init script added refact