startup script now works as it should