some modification to init.sh file