added mangle fun to make pager work