add function prototypes; new include format; define pagerops here; lint