cleaned up logs formatting and regexes.