set last storage and uid