json write good, main page prep