add register, add pages, add session support