add startup and shutdown script