updated logging and parsing methods