made read_file return bool instead of int, for clarity