New startup script. modified other files to use this also