rewrote init.d