refining init script