added putPage and appendPage