make quoting consistent. add logging.