improved local startup script