use binary encoding for reading fields