verbose function code in dev mode
page sync and selection, minor improvements