much improved init script