avoid constant opening/closing of pagemap