fixing generator and init script