fixing startup script