Update write protocol; fix page addressing