fix startup script so it actually works