make the init.d script work