add write functions to pager