fixed startup script to be more modern