functions to read from logs