rebuild session system