small fixes on the startup script