z_drive: modified coded and made special init for darsan