extended binary read functions to cope with different samples and an additional path