added pagesize and fixed fieldmap