add pages and correct ctbe bug