config wrapper
rebuild session