add hazard profiles, add read_file function for tracelog