making storage safe thread.