fixed some init script problems