improving init script