wrote friend end for mounting/unmounting