pages=X workaround