working init script