add Write/Read integer and boolean